package org.alanlau.provide.controller;

import org.alanlau.api.feign.TestClient;
import org.alanlau.api.feign.form.TestForm;
import org.alanlau.api.feign.vo.TestVO;
import org.springframework.web.bind.annotation.RestController;

/**
 * 测试
 *
 * @author alan
 * @version 1.0
 * @date 2020/9/14 0:35
 */
@RestController
public class TestController implements TestClient {
    @Override
    public String getName() {
        return "alan lau";
    }

    @Override
    public TestVO getInfo(TestForm form) {
        return new TestVO(form.getName(), form.getAge(), "测试地址");
    }
}
